From 2a3c1a46fdaa9264e5512765ed281e6782cdcba1 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 28 Jun 2006 12:03:57 +0100 Subject: [PATCH] [NET] loopback: Added support for TSO Just like SG, TSO support here is innate. So all we need to do is mark it as such. This patch also adds the ethtool control functions for SG. Signed-off-by: Herbert Xu --- linux-2.6-xen-sparse/drivers/xen/netback/loopback.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c index e9337b0005..64c6c352d4 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c +++ b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c @@ -125,6 +125,10 @@ static struct ethtool_ops network_ethtool_ops = { .get_tx_csum = ethtool_op_get_tx_csum, .set_tx_csum = ethtool_op_set_tx_csum, + .get_sg = ethtool_op_get_sg, + .set_sg = ethtool_op_set_sg, + .get_tso = ethtool_op_get_tso, + .set_tso = ethtool_op_set_tso, }; /* @@ -152,6 +156,7 @@ static void loopback_construct(struct net_device *dev, struct net_device *lo) dev->features = (NETIF_F_HIGHDMA | NETIF_F_LLTX | + NETIF_F_TSO | NETIF_F_SG | NETIF_F_IP_CSUM); -- 2.30.2